package com.zbb.exam_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbb.exam_system.entity.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zbbstart
 * @date 2021/2/12 - 13:03
 */
public interface QuestionMapper extends BaseMapper<Question> {
    /**
     * 随机获取n条数据
     * @return n条数据
     */
    List<Question> getRandomData(@Param("questionCount") Integer questionCount);
}
